package com.jiwei.community.controller;

import com.jiwei.community.service.CategoryService;
import com.jiwei.community.vo.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 季伟
 * @date 2024/3/21
 */
@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    CategoryService categoryService;
    @GetMapping("/list")
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
    }
}
